<?php exit?>
<!DOCTYPE HTML>
<head>
<meta charset="utf-8" />
<meta name="author" content="<!--{$config.author|escape:html}-->" />
<meta name="keywords" content="<!--{$config.keywords|escape:html}-->" />
<meta name="description" content="<!--{$config.description|escape:html}-->" />
<meta name="copyright" content="Powered by YCKIT" />
<title><!--{$config.title|escape:html}--></title>
<!--{include file="static.php"}-->
<script type="text/javascript">
var page=2,more=false;
jQuery(function(){
	jQuery(".post-content img").LoadImage($('.post-content').width(),600,"<!--{$path}-->core/images/lightbox-ico-loading.gif");
	jQuery(window).scroll(function(){
		var h=$(document).height()-$(window).scrollTop()-document.documentElement.clientHeight;
		if(h<240){
			if(page>1&&more==false){
				more=true;
				jQuery.ajax({
					type:'GET',
					url:'<!--{$path}-->front.php?action=content&do=more&page='+page,
					success:function(result){
						if(result=='OVER'){
							page=0;
							more=false;
							return false;
						}else{
							jQuery('#main').append(result);
							page++;
							more=false
						}
					}
				});
			}
		}
	});
	<?php $this->hook('onload');?>
});
</script>
</head>
<body>
<!--{$header}-->
<div id="content">
	<div id="main">
		<!--{foreach from=$article_list item=article}-->
		<div class="box">
			<div class="post-top">
				<a href="<!--{$article.uri}-->" title="<!--{$article.title|escape:html}-->"><em><!--{$article.title}--></em></a>
			</div>
			<div class="post-content"><!--{$article.content}--></div>
			<div class="post-info">
				<span class="time"><!--{$article.time}--></span>
				<!--{if $article.click_count}--><span class="click_count">浏览<!--{$article.click_count}-->次</span>&nbsp;<!--{/if}-->
				<!--{if $article.comment_count}--><span class="comment_count">评论<!--{$article.comment_count}-->条</span><!--{/if}-->
			</div>
		</div>
		<!--{/foreach}-->
		<div class="blank"></div>
	</div>
	<div id="side">
		<?php $this->hook('side_begin');?>
		<div class="box">
			<h3>快速搜索</h3>
			<div id="search">
				<input type="text" id="search_keyword" class="input" x-webkit-speech/>
				<input type="hidden" id="search_action" value="content" class="input" x-webkit-speech/>
				<input type="button" id="search_submit" value="搜索" class="button" onclick="Search('<!--{$path}-->')"/>
			</div>
		</div>
		<!--{if $comment_list}-->
		<div class="box">
			<h3>最新评论</h3>
			<ul class="side-comment-list">
			<!--{foreach from=$comment_list item=comment}-->
			<li><b><!--{$comment.name|truncate:8}--></b>说：<br /><a href="<!--{$comment.uri}-->"><!--{$comment.content|truncate:25}--></a></li>
			<!--{/foreach}-->
			</ul>
		</div>
		<!--{/if}-->
		<!--{if $article_click_list}-->
		<div class="box">
			<h3>大家在看</h3>
			<ul class="side-list">
			<!--{foreach from=$article_click_list item=article}-->
			<li><a href="<!--{$article.uri}-->" title="<!--{$article.title|escape:html}-->"><!--{$article.title|truncate:25}--></a></li>
			<!--{/foreach}-->
			</ul>
		</div>
		<!--{/if}-->
		<!--{if $article_best_list}-->
		<div class="box">
			<h3>最新推荐</h3>
			<ul class="side-list">
			<!--{foreach from=$article_best_list item=article}-->
			<li><a href="<!--{$article.uri}-->" title="<!--{$article.title|escape:html}-->"><!--{$article.title|truncate:25}--></a></li>
			<!--{/foreach}-->
			</ul>
		</div>
		<!--{/if}-->
		<!--{if $link_list}-->
		<div class="box">
			<h3>友情连接</h3>
			<ul class="side-link-list">
			<!--{foreach from=$link_list item=link}-->
			<li><a href="<!--{$link.url}-->" title="<!--{$link.text|escape:html}-->" target="_blank"><!--{$link.name}--></a></li>
			<!--{/foreach}-->
			</ul>
			<div class="clearfix"></div>
		</div>
		<!--{/if}-->
		<div class="box">
			<h3>官方微博</h3>
		<iframe width="100%" height="550" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=550&fansRow=2&ptype=1&speed=0&skin=-1&isTitle=0&noborder=0&isWeibo=1&isFans=0&uid=2656906044&verifier=7819e815&colors=d6f3f7,ffffff,333333,22b14c,ecfbfd&dpc=1"></iframe>
		</div>
		<?php $this->hook('side_end');?>
	</div>
	<div class="clearfix"></div>
</div>
<!--{$footer}-->
</body>
</html>